﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1 {
    class Program {
        static void Main(string[] args) {

            while (true)
            {
                string info = "欢迎使用，输入1查询PI方法，输入2查询四位数，输入3查询最大值，输入4查询交换，输入其它数字退出";
                int key = Method.Exception(info);

                switch (key)
                {
                    case 1:
                        Method.PI();
                        break;
                    case 2:
                        Method.FourBitNumber();
                        break;
                    case 3:
                        Method.Max();
                        break;
                    case 4:
                        Method.Test();
                        break;
                    default:
                        Process.GetCurrentProcess().Kill();
                        break;
                }

            }
        }
        
    }
}
